package levels
{
	import org.flixel.*;
	
	import states.GameState;
	import enemies.*;
	import interactions.*;
	import items.*;
	import treasures.*;
	
	/**
	 * ...
	 * @author JAC
	 */
	public class Level_7 extends GameState
	{
		override public function create():void
		{
			super.create();
			
			_maze.load(MazeData.level_7);
			
			Tracker.lives = 1;
			Tracker.mapScore = 1000;
			Tracker.minScore = 7;
						
			Player.spawnAt(14, 15);
			
			addEntity(new RockThrow(13, 9));
			addEntity(new RockThrow(27, 3));
			addEntity(new RockThrow(5, 13));
			addEntity(new SpeedBooster(15, 9));
			addEntity(new SpeedBooster(27, 17));
			addEntity(new Slow(11, 11));
			addEntity(new Slow(17, 11));
			
			var t1:Teleporter = new Teleporter(1, 3);
			var t2:Teleporter = new Teleporter(23, 19);
			t1.other = t2;
			t2.other = t1;
			addEntity(t1);
			addEntity(t2);
			
			addEntity(new Trapdoor(7, 11));
			addEntity(new Trapdoor(21, 11));
			
			addEntity(new LootBag(1, 14));
			addEntity(new LootBag(3, 14));
			addEntity(new LootBag(2, 15));
			
			addEntity(new LootBag(27, 14));
			addEntity(new LootBag(26, 15));
			addEntity(new LootBag(25, 14));
			
			addEntity(new LootBag(10, 13));
			addEntity(new LootBag(11, 14));
			addEntity(new LootBag(10, 15));
			
			addEntity(new LootBag(17, 14));
			
			addEntity(new LootBag(1, 17));
			addEntity(new RockThrow(1, 7));
			addEntity(new RockThrow(21, 14));
			
			addEntity(new Robber(14, 7));
			addEntity(new Exorcist(0, 1));
			addEntity(new Exorcist(28, 1));
			
			addEntity(new Brute(12, 0));
			addEntity(new Brute(16, 0));
			
			gameStart();
		}
	}
}